#include<iostream>
using namespace std;
const int N = 2e5 + 10;
int n;
int main()
{
	cin >> n;
	int s = 0;
	int ma = s;
	cin >> s;
	ma = s;
	int ans = 1;
	for (int i = 0; i < n - 1; i++) {
		cin >> s;
		if (s > ma) {
			ans++;
			ma = s;
		}
	}
	cout << ans << endl;
	return 0;
}